package Service.impl;

import Mapper.SnackMapper;
import Pojo.Snack;
import Service.SnackService;
import Util.BaseMapper;

import java.util.List;

public class SnackServiceImpl implements SnackService {
    private SnackMapper snackMapper= BaseMapper.getSqlSession().getMapper(SnackMapper.class);
    @Override
    public List<Snack> QueryAll() {
        return snackMapper.QueryAll();
    }

    @Override
    public Snack QueryById(Integer snackid) {
        return snackMapper.QueryById(snackid);
    }
}
